package com.itheima.demo02.Recursion;

public class Demo01Recursion {
    public static void main(String[] args) {
//        a();
        b(1);
    }

    /*public Demo01Recursion() {
        Demo01Recursion();
    }*/

    public static void a() {
        System.out.println("a方法!");
        a();
    }

    public static void b(int i) {
        System.out.println(i);
        if (i == 10000) {
            return;
        }
        b(i++);
    }
}
